#include<iostream>
#include"(new)myMap.h"
#include"(new)mySet.h"
#include"(new)RBTree.h"
using namespace std;

namespace linhui
{
	void test1()
	{
		int arr[] = { 5,1,9,3,7,8,2,4,6,0 };


		mySet<int> obj1;
		for (int val : arr)
		{
			obj1.Insert(val);
		}

		//obj1.MidTrave();

		/*auto it = obj1.begin();
		while (it != obj1.end())
		{
			cout << *it << " ";
			++it;
		}
		cout << endl;*/


		/*for (auto au : obj1)
		{
			cout << au << " ";
		}*/


		myMap<int, int> obj2;
		for (int val : arr)
		{
			obj2.Insert({val,val});
		}
		auto itt = obj2.begin();
		while (itt != obj2.end())
		{
			cout << itt->first << "->" << itt->second << endl;
			++itt;
		}
		cout << " ";
		cout << obj2[2];
	}
}



int main()
{
	linhui::test1();



	return 0;
}